<script setup>

</script>
<template>
    <div class="not-found-container">
      <h1>404 - 页面不存在</h1>
      <p>您访问的页面 {{ $route.path }} 不存在或已被移除</p>
      <div class="action-buttons">
        <router-link to="/" class="home-button">返回首页</router-link>
        <button @click="goBack" class="back-button">返回上一页</button>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    name: 'NotFound',
    methods: {
      goBack() {
        this.$router.go(-1)
      }
    }
  }
  </script>
  
  <style scoped>
  .not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }

  .home-button, .back-button {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }

  .home-button {
    background-color: #3498db;
    color: #fff;
  }

  .back-button {
    background-color: #e74c3c;
    color: #fff;
  }
  </style>